﻿@model Suggest
@{
    var user = CommonAppService.Current.GetUser(Model.UserId);
}
@Html.HiddenFor(model => model.Id)
<fieldset>
    <legend>基础信息</legend>
    <table>
        <tr>
            <th>名称</th>
            <td>
                @user.Name
            </td>
        </tr>
        <tr>
            <th>联系方式</th>
            <td>
                @Model.Contact
            </td>
        </tr>
        <tr>
            <th>内容</th>
            <td>
                @Model.Content
            </td>
        </tr>
        <tr>
            <th>图片</th>
            <td>
                @{
                    var imgs = ConvertHelper.StringToStringArray(Model.ImageUrl);
                }
                @foreach (var item in imgs)
                {
                    <img src="@item" style="width:300px" />
                }
            </td>
        </tr>
        <tr>
            <th>创建时间</th>
            <td>
                @StringHelper.FormatDateAndTime(Model.CreateTime)
            </td>
        </tr>
    </table>
</fieldset>
